package com.echo.util;

/**
 * 
 * @author janson
 *
 */
public class ErrorCode {
	public static int SUCCESS = 0;

	public static int FAILED = 1;

	// 插入成功
	public static int WEB_SUCCESS = 200;

	// 插入失败
	public static int WEB_FAILED = 400;

	// 没有权限
	public static int WEB_UNAUTH_ERROR = 402;

	// 数据库连接失败
	public static int WEB_DB_SERVER_ERROR = 404;

	// hibernate 数据库连接失败
	public static int WEB_HQDB_SERVER_ERROR = 405;

	// SSDB 数据库连接失败
	public static int WEB_SSDB_SERVER_ERROR = 406;

	// REDIS 数据库连接失败
	public static int WEB_REDS_SERVER_ERROR = 407;

	public static int UNEXISTED = 0;

	public static int EXISTED = 1;

	public static final int ACCEPTED = 1;

	public static final int REFUSED = 0;

	public static final String HEADER = "errorcode";

	public static int ERROR = -1;

	public static int INTERNAL_SERVER_ERROR = 2000;

	public static int PARAM_ERROR = 2002;

	public static int UNSUPPORT_MD5_SECURITY = 2006;

	public static int USER_EXISTED_ERROR = 2008;

	public static int USER_PASSWORD_ERROR = 2010;

	public static int USER_UNEXISTED_ERROR = 2012;

	public static int UID_GEN_ERROR = 2013;

	public static int UNEXISTED_ERROR = 2015;

	public static int EXISTED_ERROR = 2017;

	public static int IO_ERROR = 2019;

	public static int VERIFICATION_PHONE_ERROR = 2020;

	public static int VERIFICATION_CODE_UNVALIDATE = 2021;

	public static int PHONE_UNVERIRICATED = 2032;

	public static int EMAIL_UNVERIFICATIED = 2033;

	public static int UNAUTHENTICATED = 2035;

	public static int UNSUPORTED_TYPE = 2037;

	public static int NO_GPSLOCATION_ERROR = 2040;

	public static int RESOURCE_LENGTH_ERROR = 2046;

	public static int REMOTE_MATCH_RESULT_PACKET_ERROR = 2050;

	public static int REMOTE_MATCH_FAILED = 2051;

	public static int REMOTE_MATCH_SERVER_ERROR = 2052;

	public static int UNSUPPORT_ZONE_ERROR = 2053;

	public static int REDIS_CACHE_ERROR = 2060;

	public static int SSDB_SAVE_ERROR = 2061;

	public static int MESSAGE_RETURN_NOT_ALL = 5000;// 请求的消息列表没能完全返回

	public static int TIMEOUT_ERROR = 6001;

	public static int UNCHANGED_ERROR = 8001;
}
